/**
 * 
 */
package com.suneee.refund.address.bean;

import java.io.Serializable;
import java.sql.Timestamp;

import com.suneee.orm.annotation.Column;
import com.suneee.orm.annotation.Entity;
import com.suneee.orm.annotation.GeneratedValue;
import com.suneee.orm.annotation.GenerationType;
import com.suneee.orm.annotation.Id;
import com.suneee.orm.annotation.Table;
import com.suneee.orm.annotation.Transient;

/**
 * @author liuxh 退换货详细地址管理属性类
 */

@Entity
@Table(name = "t_refund_address")
public class RefundAddress  implements Serializable {

	/**
	 * 
	 */
	private static final long serialVersionUID = -6616181465999036453L;

	/**
	 * 配置id(主键)
	 */
	@Id
	@GeneratedValue
	@Column(name = "id", nullable = false)
	private Long id;

	/**
	 * 企业编码
	 */
	@Column(name = "enterprise_code", nullable = false)
	private String enterpriseCode;

	/**
	 * 店铺id
	 */
	@Column(name = "shop_id", nullable = false)
	private int shopId;

	/**
	 * 地区编码
	 */
	@Column(name = "area_id", nullable = false)
	private int areaId;

	/**
	 * 省
	 */
	@Column(name = "receiver_state", nullable = false)
	private String receiverState;

	/**
	 * 市
	 */
	@Column(name = "receiver_city", nullable = false)
	private String receiverCity;

	/**
	 * 县,区
	 */
	@Column(name = "receiver_district", nullable = false)
	private String receiverDistrict;

	/**
	 * 详细地区
	 */
	@Column(name = "receiver_address", nullable = false)
	private String receiverAddress;

	/**
	 * 联系人
	 */
	@Column(name = "name", nullable = false)
	private String name;

	/**
	 * 联系人电话
	 */
	@Column(name = "phone", nullable = false)
	private String phone;

	/**
	 * 邮编
	 */
	@Column(name = "post_code", nullable = false)
	private String postCode;

	/**
	 * 是否默认
	 */
	@Column(name = "is_default", nullable = false)
	private Boolean defaults;

	/**
	 * 创建时间
	 */
	@Column(name = "created_time", nullable = false)
	private Timestamp createdAt;

	/**
	 * 更新时间
	 */
	@Column(name = "update_time", nullable = false)
	private Timestamp updateAt;

	/**
	 * 操作人id
	 */
	@Column(name = "create_user", nullable = false)
	private int optUserId;
	
	@Column(name = "update_user", nullable = false)
	private int updateUser;
	
	@Column(name = "short_name")
	private String shortName;
	
	@Transient
	private String  company;
	
	@Column(name = "address_remark")
	private String  addressRemark;

	/**
	 * 店铺名称
	 */
	@Transient
	private String shopName;

	public Long getId() {
		return id;
	}

	public void setId(Long id) {
		this.id = id;
	}

	public String getEnterpriseCode() {
		return enterpriseCode;
	}

	public void setEnterpriseCode(String enterpriseCode) {
		this.enterpriseCode = enterpriseCode;
	}

	public int getShopId() {
		return shopId;
	}

	public void setShopId(int shopId) {
		this.shopId = shopId;
	}

	public int getAreaId() {
		return areaId;
	}

	public void setAreaId(int areaId) {
		this.areaId = areaId;
	}

	public String getReceiverState() {
		return receiverState;
	}

	public void setReceiverState(String receiverState) {
		this.receiverState = receiverState;
	}

	public String getReceiverCity() {
		return receiverCity;
	}

	public void setReceiverCity(String receiverCity) {
		this.receiverCity = receiverCity;
	}

	public String getReceiverDistrict() {
		return receiverDistrict;
	}

	public void setReceiverDistrict(String receiverDistrict) {
		this.receiverDistrict = receiverDistrict;
	}

	public String getReceiverAddress() {
		return receiverAddress;
	}

	public void setReceiverAddress(String receiverAddress) {
		this.receiverAddress = receiverAddress;
	}

	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public String getPhone() {
		return phone;
	}

	public void setPhone(String phone) {
		this.phone = phone;
	}

	public String getPostCode() {
		return postCode;
	}

	public void setPostCode(String postCode) {
		this.postCode = postCode;
	}

	public Boolean getDefaults() {
		return defaults;
	}

	public void setDefaults(Boolean defaults) {
		this.defaults = defaults;
	}

	public Timestamp getCreatedAt() {
		return createdAt;
	}

	public void setCreatedAt(Timestamp createdAt) {
		this.createdAt = createdAt;
	}

	public Timestamp getUpdateAt() {
		return updateAt;
	}

	public void setUpdateAt(Timestamp updateAt) {
		this.updateAt = updateAt;
	}

	public int getOptUserId() {
		return optUserId;
	}

	public void setOptUserId(int optUserId) {
		this.optUserId = optUserId;
	}

	public String getShopName() {
		return shopName;
	}

	public void setShopName(String shopName) {
		this.shopName = shopName;
	}

	public String getShortName() {
		return shortName;
	}

	public void setShortName(String shortName) {
		this.shortName = shortName;
	}

	public int getUpdateUser() {
		return updateUser;
	}

	public void setUpdateUser(int updateUser) {
		this.updateUser = updateUser;
	}

	public String getCompany() {
		return company;
	}

	public void setCompany(String company) {
		this.company = company;
	}

	public String getAddressRemark() {
		return addressRemark;
	}

	public void setAddressRemark(String addressRemark) {
		this.addressRemark = addressRemark;
	}

}
